package org.kitrum.example.spring.factory;

import org.jetbrains.annotations.NotNull;
import org.kitrum.example.model.UserBean;
import org.springframework.beans.factory.FactoryBean;

/**
 * @program: kitrum-example
 * @description:
 * @author: Kun
 * @create: 2021-01-22 09:51
 */
public class UserFactoryBean implements FactoryBean<UserBean> {

    @NotNull
    @Override
    public UserBean getObject() throws Exception {
        return new UserBean();
    }

    @NotNull
    @Override
    public Class<?> getObjectType() {
        return UserBean.class;
    }
}
